package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组织层级关系
 * </p>
 *
 * @author li.shiying
 * @since 2023-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gas_organization")
@ApiModel(value="Organization对象", description="组织层级关系")
public class Organization extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "上级组织企业编码")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "上级组织企业名称")
    @TableField("parent_name")
    private String parentName;

    @ApiModelProperty(value = "企业名称")
    @TableField("sp_name")
    private String spName;
}
